package com.yixin.ystartlibrary.utils;

import android.content.Context;
import android.content.DialogInterface;

import com.yixin.ystartlibrary.widget.HintDialog;


/**
 * Created by wdy on 2016/11/10.
 * 对话框集合类
 */

public class DialogUtils {

    public static HintDialog showHintDialog(Context context, CharSequence message) {
        return showHintDialog(context, message, false);
    }

    public static HintDialog showHintDialog(Context context, CharSequence message,
                                            boolean cancelable) {
        return showHintDialog(context, message, cancelable, null);
    }

    public static HintDialog showHintDialog(Context context, CharSequence message,
                                            boolean cancelable, DialogInterface.OnCancelListener cancelListener) {
        HintDialog mPd = HintDialog.show(context, message, cancelable, cancelListener);
        return mPd;
    }


    public static HintDialog createHintDialog(Context context, CharSequence message) {
        return createHintDialog(context, message, false);
    }

    public static HintDialog createHintDialog(Context context, CharSequence message,
                                              boolean cancelable) {
        return createHintDialog(context, message, cancelable, null);
    }

    public static HintDialog createHintDialog(Context context, CharSequence message, boolean cancelable,
                                              DialogInterface.OnCancelListener cancelListener) {
        HintDialog mPd = HintDialog.create(context, message, cancelable, cancelListener);
        return mPd;
    }
}
